/*
 * Powered By dico
 * Since 2017 - 2018
 */
package com.seeyoui.kensite.bussiness.report.userStat.domain;

import java.util.List;

import com.seeyoui.kensite.framework.cms.article.domain.ArticleVO;

/**
 * UserStat
 * @author dico
 * @version 2.0
 * @since 1.0
 * @date 2018-01-12
 */

public class UserStatVO {
	private String userId;//用户ID
	private String point = "0";//积分
	private String duration = "0";//学习时长
	private String article = "0";//学习文章数量
	private String exam = "0";//考核次数
	private String login = "1";//登录次数
	private String pointRank = "0";//积分排名
	private String gapWithFirst = "0";//与第一名的积分差距
	
	private List<ArticleVO> lsArticleVOs = null;
	
	public static UserStatVO instance(UserStat userStat, List<ArticleVO> lsArticleVOs) {
		UserStatVO vo = instance(userStat);
		vo.setLsArticleVOs(lsArticleVOs);
		return vo;
	}
	
	public static UserStatVO instance(UserStat userStat) {
		UserStatVO vo = new UserStatVO();
		if(null != userStat) {
			vo.setUserId(userStat.getUserId());
			vo.setPoint(userStat.getPoint());
			vo.setDuration(userStat.getDuration());
			vo.setArticle(userStat.getArticle());
			vo.setExam(userStat.getExam());
			vo.setLogin(userStat.getLogin());
			vo.setPointRank(userStat.getPointRank());
			vo.setGapWithFirst(userStat.getGapWithFirst());
		}
		return vo;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}

	public String getExam() {
		return exam;
	}

	public void setExam(String exam) {
		this.exam = exam;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPointRank() {
		return pointRank;
	}

	public void setPointRank(String pointRank) {
		this.pointRank = pointRank;
	}

	public String getGapWithFirst() {
		return gapWithFirst;
	}

	public void setGapWithFirst(String gapWithFirst) {
		this.gapWithFirst = gapWithFirst;
	}

	public List<ArticleVO> getLsArticleVOs() {
		return lsArticleVOs;
	}

	public void setLsArticleVOs(List<ArticleVO> lsArticleVOs) {
		this.lsArticleVOs = lsArticleVOs;
	}
	
	
}